#!/bin/bash

set -eux # -x for verbose logging to juju debug-log

# relevant web links.

juju-log "III Getting any config parameters."


##############################
# INSTALL SYSTEM DEPENDENCIES
#############################
juju-log "III Installing iscsitarget iscsitarget-dkms via apt-get"

apt-get -y install iscsitarget iscsitarget-dkms

cp config_iscsitarget /etc/default/iscsitarget 

# This is for the file images.
# TODO V get this pass from en ENV setting.
mkdir /storage

rm /etc/iet/ietd.conf

